<template>
    <div>
        <h1>首页</h1>
        <h1 @click="goDetail">跳转详情</h1>
    </div>
</template>

<script>
    export default {
        methods: {
            goDetail () {
                this.$router.push('/detail')
            }
        }
    }
</script>
